<%@page import="com.lynn.salary.util.ToolMethod"%>
<%@page import="com.lynn.salary.entity.Article"%>
<%@page import="com.opensymphony.xwork2.util.ValueStack"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="java.text.SimpleDateFormat"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%
	ValueStack vs = (ValueStack) request.getAttribute("struts.valueStack");
	Map<String,Object> a = (Map<String,Object>) vs.findValue("detail");
	SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd HH:mm");
	String createDate = sdf.format(a.get("createTime"));
%>

<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>

<html>
	<!--<![endif]-->
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

		<title>
			<%=a.get("title") %>
		</title>

		<link rel="stylesheet" href="<%=basePath %>product/css/base.css">
		<link rel="stylesheet" href="<%=basePath %>product/css/index.css">
		<link rel="stylesheet" href="<%=basePath %>product/css/jqModal.css">
		<link rel="stylesheet" href="<%=basePath %>product/js/downup/styles.css">

		<script src="<%=basePath %>product/js/jquery-1.7.min.js"></script>
		<script src="<%=basePath %>product/js/index.js"></script> 
		<script src="<%=basePath %>product/js/jqModal.js"></script>
		<script src="<%=basePath %>product/js/downup/index.js"></script>
	</head>
<body>
<div class="header">
		<div class="headerContent">
			<div class="headerLogo">
				<a class="logo" href="<%=basePath %>"><img style="border: none;" src="<%=basePath %>product/images/logo.jpg"></a>
			</div>
			<div class="headerTitle">
				<ul class="nav">
					<li><a style="color:rgb(255,102,0)" href="<%=basePath %>" target="_blank">最新资讯</a></li>
					<li><a href="<%=basePath %>product/tieba.jsp" target="_blank">信息交流区</a></li>
					<li><a href="<%=basePath %>building.jsp" target="_blank">个股精研</a></li>
					<li><a href="<%=basePath %>frontEndLogin!frontEndLogin.do?<%=ToolMethod.getCharAndNumr(8) %>">会员登录</a></li>
				</ul>
			</div>
		</div>
</div>

<div class="circle_for_nav">
	<a href="<%=basePath %>">最新资讯</a>&nbsp;&gt;
	<s:if test="articleTypeId != ''">
		<a href="<%=basePath %>index!showAllArticleByType.do?articleTypeId=<s:property value="articleTypeId"/>">
			<s:property value="articleTypeName"/>
		</a>
	</s:if><s:else>
		<s:property value="articleTypeName"/>
	</s:else>
	
	<div style="display: inline;float: right;">
		<input type="text" size="50"/>
		<input type="submit" value="搜索" />
	</div>
</div>
	<div id="container">
			<div id="content-wrapper" class="clearfix row">
				<div class="content-right twelve columns">
					<div id="content">
						<h1 class="entry-title">
							<%=a.get("title") %>
						</h1>
						<div class="entry-posted">
							<span class="sep">发布时间 </span>
							<a style="text-decoration: none;font-size:12px;color:black;" href="<%=basePath%>detail!showDetail.do?articleId=<%=a.get("id") %>&articleTypeId=<s:property value="articleTypeId"/>"> <time class="entry-date"><%=createDate %></time> </a><span class="by-author">
								<span class="sep">作者 </span> <span class="author vcard"> <%=a.get("author") %> </span> </span>
						</div>
						<hr>
						<%=a.get("content") %>
					</div>
				</div>
			</div>
			<div class="footer">
				<div class="footerText">
						 关于我们 | 联系我们<br>		
						© Copyright
				</div>
			</div>
		</div>
		
		<div id="x_downup_troggle" url="<%=basePath%>frontEndLogin!loginStatus.do">
		   		
		</div>
		<div id="x_downup_content" url="<%=basePath%>frontEndLogin!showInfo.do">
		   		
		</div>

	</body>
</html>